package com.linkstec.Callback;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;

public class B{
	private C c =  new C();
	@SuppressWarnings({ "unchecked", "rawtypes" })
	FutureTask futureTask = new FutureTask(c);
	ExecutorService es = Executors.newFixedThreadPool(3);
	@SuppressWarnings("unused")
	public void send(Callback callback) {
		c.setCallback(callback);
		Future<?> future = es.submit(futureTask);
		es.shutdown();
    }
}
